<button on:click="{() => visible = !visible}">toggle</button>

{#if visible}
	<p>hello!</p>
{/if}
